package NewThreadTest;

//import dataAnalysis.NewThreadExample.MessageLoop;
import runInfo.TestThreadGUI;

public class TestThreadMain {

	/**
	 * @param args
	 * @throws InterruptedException 
	 */
	public static void main(String[] args) throws InterruptedException {

		Thread threadGUI = new Thread( new TestThreadGUI());
		threadGUI.start();
		
		Thread threadTemp = new Thread(new TestThreadTemp());
		threadTemp.start();
		
		int counter = 0;
		int maxTime = 10;
		while(threadGUI.isAlive()){
			threadGUI.join(1000); 																//wait max of 1 sec for messageloop thread to finish
//			if((counter > maxTime) && threadGUI.isAlive()){
//				threadGUI.interrupt();
//				threadGUI.join();																//shouldn't be long now - wait indefinitely				
//			}
		}
		threadTemp.stop();

	}

}
